package cn.edu.lcu.cs.javalearning.net;

import java.io.Serializable;

public class Ore implements Serializable {
    private int id;
    private double size;

    public Ore(double size) {
        this.size = size;
    }

    public Ore(int id, double size) {
        this.size = size;
        this.id = id;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "Ore{" +
                "id=" + id +
                ", size=" + size +
                '}';
    }
}
